﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BFlatCompile
{
	internal class ClassIdLookup
	{
		private Dictionary<string, int> lookup = new Dictionary<string, int>();
		public ClassIdLookup(IList<Nodes.Class> classes)
		{
			foreach (Nodes.Class c in classes)
			{
				this.lookup[c.FullName] = c.ID;
			}
		}

		public int Get(string fullname)
		{
			return this.lookup[fullname];
		}
	}
}
